import Layout from '@/views/layout/Layout'

export const plmRouter= [
  {
    path: '/plm',
    component: Layout,
    redirect: '/plm/question/list',
    name: 'plm',
    meta: {title: '题目', icon: 'plm'},
    hidden: false,
    children: [
      {
        path: 'question/list',
        name: 'listQuestion',
        component: () => import('@/views/questions/index'),meta: {title: '题目列表', icon: 'product-list'}
      },
      {
        path: 'question/edit/:id?',
        name: 'editQuestion',
        component: () => import('@/views/questions/add'),meta: {title: '题目编辑', icon: 'product-list'},hidden: true
      },
      {
        path: 'exam/list',
        name: 'listExam',
        component: () => import('@/views/exams/List.vue'),meta: {title: '试卷管理', icon: 'product-list'}
      },
      {
        path: 'exam/edit/:id?',
        name: 'editExam',
        component: () => import("@/views/exams/Edit.vue"),meta: {title: '试卷编辑', icon: 'product-list'},hidden: true
      }
    ]
  }
]  
  
  
  